package main

import (
	"fmt"
	"google.golang.org/grpc"
	mygrpc "mygrpc/services"
	"net"
)

func main() {

	rpcService := grpc.NewServer()
	mygrpc.RegisterProductServiceServer(rpcService, new(mygrpc.ProductService))

	lis, err1 := net.Listen("tcp", ":8082")
	if err1 != nil {
		fmt.Println(err1)
	}
	rpcService.Serve(lis)

}
